<div class="layuimini-container">


<form id="add-form" class="layui-form layuimini-form">

    <div class="layui-form-item">
        <label class="layui-form-label required">上传</label>
        <div class="layui-input-block layuimini-upload">
            <input name="filepath" class="layui-input layui-col-xs6" lay-verify="required" lay-reqtext="请上传客户数据" placeholder="请上传客户数据" value="">
            <div class="layuimini-upload-btn">
                <span><a class="layui-btn" data-upload="filepath" data-upload-number="one" data-upload-exts="csv|xls|xlsx" data-upload-mimetype="application/vnd.ms-excel,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,text/csv" data-upload-accept="file"><i class="fa fa-upload"></i> 上传文件</a></span>
            </div>

        </div>
        <div class="layui-input-block">
            <tip>*请按照模板填好批量上传，<a href="{:url('getImportTpl')}" target="_blank">点击下载模板</a></tip>
        </div>
    </div>





    <div class="layui-form-item">
        <label class="layui-form-label">归属员工</label>
        <div class="layui-input-block">
            <select name="pr_user" lay-filter="pr_user">
                <option value="">员工选择</option>
                <?php
$adminResult = \think\facade\Db::name('admin')->where('group_id','<>', 1)->field('admin_id,username')->select();
                ?>
                {volist name='adminResult' id='vo'}
                <option value="{$vo.username}" {if condition="$admin['username'] eq $vo['username']"}selected{/if}>{$vo.username}</option>
                {/volist}
            </select>
            <tip>归属员工不选，将直接放入公海</tip>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">错误是否跳过</label>
        <div class="layui-input-block">
            <input type="radio" name="skip" value="1" title="跳过" checked="">
            <input type="radio" name="skip" value="0" title="不跳过">
            <tip>如果某条数据重复或者必填，选择跳过就不会中断导入。</tip>
        </div>
    </div>

    <div class="hr-line"></div>
    <div class="layui-form-item text-center">
        <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确定</button>
        <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
    </div>
</form>
</div>